package com.fortune.bootup;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.*;

@Configuration
@ComponentScan
@EnableAutoConfiguration
@SpringBootApplication
@ImportResource({ "classpath*:/spring/spring*.xml" })
public class SpringFortuneApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext cac = SpringApplication.run(SpringFortuneApplication.class, args);
		cac.registerShutdownHook();
	}

}
